package k.order.controller;


import k.daimai.entity.DmCategory;
import k.order.mapper.DmCategoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 大麦商城-商品分类表-43 前端控制器
 * </p>
 *
 * @author k
 * @since 2025-03-01
 */
@RestController
@RequestMapping("/category")
public class DmCategoryController {
    @Autowired
    DmCategoryMapper dmCategoryMapper;
    @GetMapping("getCategorys")
    public List<DmCategory> getCategorys() {
        return dmCategoryMapper.selectList(null);
    }
}
